<!--
 * @Author       : xh
 * @Date         : 2022-04-27 09:50:05
 * @LastEditors  : xh
 * @FileName     :   
-->
<template>
  <div class="staff-container">
    <h3>测试详情</h3>
  </div>
</template>

<script>
import { internetApi } from '@/api/api'
export default {
  name: 'InternetCenterDetail',
  components: {},
  data() {
    return {
      searchParam: {
        staffNum: null
      }
    }
  },
  mounted() {
    console.log('defatuyl', this.$route.params.id)
  },
  methods: {
    //更新表格数据
    tableUpdate(...arg) {
      this.$refs.table.update(...arg)
    },
    //获取表格数据的方法
    async getData(currentPage, pageSize) {
      const { data } = await this.$request(internetApi.staffList, Object.assign(this.searchParam, { currentPage, pageSize }))
      return {
        list: data.list,
        total: data.count
      }
    },
    //新增
    add() {
      this.$refs.dialog.open()
    },
    //编辑
    edit(row) {
      this.$refs.dialog.open(row)
    },
    //设置角色
    async role(row) {
      this.$refs.role.open(row)
    }
  }
}
</script>

<style lang="scss" scoped></style>
